{include file = 'header.tpl'}      

      <div class="center-column">      
        <div id="primary-full">
          <form action="qa-search.php" id="search-form" method="POST">
            <fieldset>
              <input type="text" class="default-text-input mid-text-input" name="q" id="q" value="{$q}" autocomplete="off" />
              <input type="submit" class="default-button" id="search-button" value="Search" />
            </fieldset>
          </form>
          
          <form action="qa-search.php" id="add-qa-prompt" method="POST">
            <input type="submit" class="default-button" id="add-qa-prompt-button" value="Add a QA" /> 
          </form>
      
        <form action="add-question.php" id="add-question" class="hidden" method="POST">
          <h2>Add a New Question</h2>
          <fieldset class="stacked-fields">
            <input type="text" class="default-text-input" name="question" id="question" value="Question" autocomplete="off" />
            <input type="text" class="default-text-input" name="answer" id="answer" value="Answer" autocomplete="off" />
            <input type="text" class="default-text-input" name="qa-source" id="qa-source" value="Source" />
            <input type="hidden" id="newest_qa_id" value="{$newest_qa_id}" />
            <input type="submit" class="default-button" id="add-qa-button" value="Add" />         
          </fieldset>
        </form>
          
          <ul id="qa-browse">
            <h2>Results for <em>{$q}</em></h2>
            {$qas}
          </ul>
          
          <form action="qa-repository.php" id="show-more-qas" method="POST">
            <input type="submit" class="default-button" id="show-more-qas-button" value="See More Questions" /> 
          </form>
        </div>
      </div>

{include file = 'footer.tpl'}
